package com.ssy.lingxi.order.model.vo.mobile.request;

import com.ssy.lingxi.order.model.vo.basic.request.OrderIdVO;
import com.ssy.lingxi.order.model.vo.vendor.request.VendorUpdateProductPriceVO;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 销售订单 - 修改运费与商品到手价接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-17
 */
public class MobileVendorUpdateFreightVO extends OrderIdVO implements Serializable {
    private static final long serialVersionUID = -1229785594255239841L;

    /**
     * 运费
     */
    @Min(value = 0, message = "运费要大于等于0")
    @Max(value = 1000000000, message = "运费不能超过10亿")
    private BigDecimal freight;

    /**
     * 修改原因
     */
    @Size(max = 60, message = "修改原因最长60个字符")
    private String reason;

    /**
     * 订单商品与单价（到手价）
     */
    private List<VendorUpdateProductPriceVO> prices;

    public BigDecimal getFreight() {
        return freight;
    }

    public void setFreight(BigDecimal freight) {
        this.freight = freight;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public List<VendorUpdateProductPriceVO> getPrices() {
        return prices;
    }

    public void setPrices(List<VendorUpdateProductPriceVO> prices) {
        this.prices = prices;
    }

}
